<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page errorPage="../errorPage.jsp" %>
<c:if test="${not empty sessionScope.user}">
	<c:redirect url="../index.jsp" />
</c:if>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="ISO-8859-1">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/template.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/header.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/footer.css">
		<title>Registrazione</title>
	</head>
	<body>
		<div id="body">
			<%@ include file="../header.jsp" %>
			
			<%@ include file="../menu.jsp" %>
			
			<div id="title">
				Registrazione
			</div>
			
			<div id="content">
				<form action="${pageContext.request.contextPath}/ServletCreateAccount" method="post">
					<div>
						<label>Nickname:</label>
						<input type="text" id="nickname" name="nickname">
					</div>
					<div>
						<label>Password:</label>
						<input type="text" id="password" name="password">
					</div>
					<div>
						<label>Cognome:</label>
						<input type="text" id="surname" name="surname">
					</div>
					<div>
						<label>Nome:</label>
						<input type="text" id="name" name="name">
					</div>
					<div>
						<label>Codice fiscale:</label>
						<input type="text" id="fiscalCode" name="fiscalCode">
					</div>
					<div>
						<input type="hidden" id="type" name="type" value="client">
						<input type="submit" id="register" name="register" value="Registrati">
					</div>
				</form>
			</div>
			
			<%@ include file="../footer.jsp" %>
		</div>
	</body>
</html>